$.fn.cmsmodal=function(option){
    //if(!option){return}
    return new Cmsmodal(this,option);
}

function Cmsmodal(that,option){
    var $ele = $(that);
    this.$ele = $ele;
    if(option=='show'){
        this.show();
    }
    if(option=='hide'){
        this.hide();
    }
}
Cmsmodal.prototype = {
   show : function() {
       this.$ele.show();
   },
   hide : function() {
       this.$ele.hide();
   }
}